clear
% x = [1100, 1110, 1115, 1120, 1130];
% y = [19.74, 14.67, 13.1, 11.84, 9.76];
% x = [1100 1105 1110 1120 1125 1130];
% y = [20.057 17.42 14.42 12.455 16.143 10.351];
x = [1100 1102 1105 1110 1115 1120 1125 1130];
y = [20.44961 18.89755 17.30416 14.69878 12.8945 12.56017 10.70317 10.5386];
d = [1500 1400 1100 900 800 800 700 700];
p = polyfit(y, d, 1)
x = 10:0.1:20;
plot(x, polyval(p, x));
grid on
polyval(p, 20)
